// 模拟分页查询测试任务状态列表的响应数据
const Mock = require('mockjs')
const queryByPageResponse = Mock.mock({
  "code": 200,
  "msg": "查询成功",
  "total": "@integer(1, 100)",
  "additionalData": null,
  "rows|1-10": [
    {
      "id": "@increment",
      "taskName": "@word(3, 8)",
      "beginTime": "@datetime",
      "endTime": "@datetime",
      "execTime": "@integer(1, 1000)",
      "execStatus|1": ["未开始", "进行中", "已完成", "失败"],
      "sendPackNum": "@integer(1, 1000)",
      "recvPackNum": "@integer(1, 1000)",
      "sendDataSize": "@integer(1, 1000)MB",
      "recvDataSize": "@integer(1, 1000)MB"
    }
  ]
});

// 导出模拟接口
module.exports = [
  {
    url: '/bizTestTask/queryByPage',
    method: 'get',
    response: (config) => {
      // config 包含请求参数，这里可以根据 pageSize 和 pageNum 做更复杂的模拟
      return queryByPageResponse;
    }
  }
];